import resolve from 'rollup-plugin-node-resolve'

export default {
	input: './src/plugin/main.js',
	output: [
		{
			file: './dist/index-plugin-resolve-cjs.js',
			format: 'cjs',
		},
		{
			file: './dist/index-plugin-resolve-es.js',
			format: 'es',
		},
	],
	// 引入插件
	plugins: [resolve()],
	// 保持外部库引用关系
	external: ['sam-test-data'],
}
